package com.egdd.video.mapper;

import com.egdd.video.pojo.Video;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface VideoMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(Video record);

    int insertSelective(Video record);


    Video selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Video record);

    int updateByPrimaryKey(Video record);

    /**
     * 根据合集获取视频列表
     * @param albumId 合集id
     * @return list
     */
    List<Video> getVideoByAlbumId(Integer albumId);
}
